home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / swing / AbstractButton$AccessibleAbstractButton$ButtonKeyBinding.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  880 b   |  27 lines

  1. package javax.swing;
  2.  
  3. import javax.accessibility.AccessibleKeyBinding;
  4.  
  5. class AbstractButton$AccessibleAbstractButton$ButtonKeyBinding implements AccessibleKeyBinding {
  6.    int mnemonic;
  7.    // $FF: synthetic field
  8.    final AbstractButton.AccessibleAbstractButton this$1;
  9.  
  10.    AbstractButton$AccessibleAbstractButton$ButtonKeyBinding(AbstractButton.AccessibleAbstractButton var1, int var2) {
  11.       this.this$1 = var1;
  12.       this.mnemonic = var2;
  13.    }
  14.  
  15.    public int getAccessibleKeyBindingCount() {
  16.       return 1;
  17.    }
  18.  
  19.    public Object getAccessibleKeyBinding(int var1) {
  20.       if (var1 != 0) {
  21.          throw new IllegalArgumentException();
  22.       } else {
  23.          return KeyStroke.getKeyStroke(this.mnemonic, 0);
  24.       }
  25.    }
  26. }
  27.